//
//  PinYinUtil.m
//  EpointMobileFrame
//
//  Created by 李亚春 on 13-3-1.
//  Copyright (c) 2013年 epoint. All rights reserved.
//

#import "PinYinUtil.h"

@implementation PinYinUtil

+(NSString *)Hanzi2PinYin:(NSString *)_chinese
{
    NSMutableString *firstSpellString = [NSMutableString stringWithFormat:@""];
    
    for (int i = 0; i < [_chinese length]; i++)
    {
        char c = pinyinFirstLetter([_chinese characterAtIndex:i]);
        NSString *str = [NSString stringWithFormat:@"%c",c];
        [firstSpellString appendString:str];
    }
    
    return firstSpellString;
}

@end
